module.exports = {
  configureWebpack: (config) => {
    if (process.env.NODE_ENV === "example") {
      config.entry = "./example/main.js";
    } else if (process.env.NODE_ENV === "lib") {
      config.entry = "./src/index.js";
      config.output = {
        libraryExport: "default",
      };
    } else {
      config.entry = "./example/main.js";
    }
  },
  productionSourceMap: false,
  css: { extract: false },
};
